package com.prism.moodme.util;


import java.net.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;



public class ImageHelper {

    private ImageHelper() {
    }

    public static Image loadImage(String name) {
        Image image = null;
        try {
        	URL url =new URL(name);
        	image = ImageIO.read(url);
		} catch (Throwable ex)
        { System.out.println("ERROR: loading image " + name + " failed"); }
        return image;
    }
}

